package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 化检标准实体类
 *
 * @author 吴旭
 */
public class InspectionStandardEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -4541879765957648939L;
    private Long StandardId;
    private Integer PoTypeId;
    private String PoTypeName;
    private Long CustomerId;
    private String CustomerName;
    private String QualityStandard;

    public Long getStandardId() {
        return StandardId;
    }

    public void setStandardId(Long StandardId) {
        this.StandardId = StandardId;
    }

    public Integer getPoTypeId() {
        return PoTypeId;
    }

    public void setPoTypeId(Integer PoTypeId) {
        this.PoTypeId = PoTypeId;
    }

    public String getPoTypeName() {
        return PoTypeName;
    }

    public void setPoTypeName(String PoTypeName) {
        this.PoTypeName = PoTypeName;
    }

    public Long getCustomerId() {
        return CustomerId;
    }

    public void setCustomerId(Long CustomerId) {
        this.CustomerId = CustomerId;
    }

    public String getCustomerName() {
        return CustomerName;
    }

    public void setCustomerName(String CustomerName) {
        this.CustomerName = CustomerName;
    }

    public String getQualityStandard() {
        return QualityStandard;
    }

    public void setQualityStandard(String QualityStandard) {
        this.QualityStandard = QualityStandard;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof InspectionStandardEntity)) {
            return false;
        }

        final InspectionStandardEntity that = (InspectionStandardEntity) o;

        return new EqualsBuilder()
                .append(this.getStandardId(), that.getStandardId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getStandardId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
